
//初始加载

 import nodeRoot from './NodeRoot';
import  webRoot from  './WebRoot';




export default function RunLoad(resolve,srclist) {

    if(qguan.inBrowser){
        qguan.root=new webRoot();
    }else {
        qguan.root=new nodeRoot();

    }
    let load=qguan.findBend(srclist[3]);;

    if(load){
        load.load(...srclist);
    }else {
        throw new Error(srclist[3]+" load没有加载");
    }
    return resolve('200 OK');
}
